package com.fss.article.mapper;

import com.fss.article.domain.Article;
import com.fss.article.domain.MyComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper1 {
    List<String> getCategorys();
    List<Article> getArticleList();

    List<MyComment> getCommentsById(int id);

    void addMyComment( @Param("text") String text,
                       @Param("name") String name,
                       @Param("findId") int findId);

    void addArticle(@Param("articleDTO") Article articleDTO);
}
